import request from '@u/request'
import { HttpMethod } from '@u/http'

// 查询列表
export function listServiceStore(query) {
  return request({
    url: '/beauty/serviceStore/list',
    method: HttpMethod.GET,
    params: query
  })
}

// 查询
export function getServiceStore(id) {
  return request({
    url: '/beauty/serviceStore/' + id,
    method: HttpMethod.GET
  })
}

// 新增
export function addServiceStore(data) {
  return request({
    url: '/beauty/serviceStore',
    method: HttpMethod.POST,
    data: data
  })
}

// 修改
export function updateServiceStore(data) {
  return request({
    url: '/beauty/serviceStore',
    method: HttpMethod.PUT,
    data: data
  })
}

// 删除
export function delServiceStore(id) {
  return request({
    url: '/beauty/serviceStore/' + id,
    method: HttpMethod.DELETE
  })
}
